package com.xinchuang.mapper;

import com.xinchuang.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zx
 * @since 2023-08-30
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    @Update(value = "UPDATE role_permission SET accredit = #{accredit} WHERE role_id = #{roleId} AND permission_id = #{permissionId}")
    int updateAccredit(RolePermission rolePermission);

}
